package com.muyu.danmo.mapper;


import com.muyu.danmo.domain.DanmoTrainingShoppingProductsCarousel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 培训班商品轮播图Mapper接口
 * 
 * @author kunzong
 * @date 2024-11-28
 */
public interface DanmoTrainingShoppingProductsCarouselMapper 
{
    /**
     * 查询培训班商品轮播图
     * 
     * @param id 培训班商品轮播图主键
     * @return 培训班商品轮播图
     */
    public DanmoTrainingShoppingProductsCarousel selectDanmoTrainingShoppingProductsCarouselById(Long id);

    /**
     * 查询培训班商品轮播图列表
     * 
     * @param danmoTrainingShoppingProductsCarousel 培训班商品轮播图
     * @return 培训班商品轮播图集合
     */
    public List<DanmoTrainingShoppingProductsCarousel> selectDanmoTrainingShoppingProductsCarouselList(DanmoTrainingShoppingProductsCarousel danmoTrainingShoppingProductsCarousel);

    /**
     * 新增培训班商品轮播图
     * 
     * @param danmoTrainingShoppingProductsCarousel 培训班商品轮播图
     * @return 结果
     */
    public int insertDanmoTrainingShoppingProductsCarousel(DanmoTrainingShoppingProductsCarousel danmoTrainingShoppingProductsCarousel);

    /**
     * 修改培训班商品轮播图
     * 
     * @param danmoTrainingShoppingProductsCarousel 培训班商品轮播图
     * @return 结果
     */
    public int updateDanmoTrainingShoppingProductsCarousel(DanmoTrainingShoppingProductsCarousel danmoTrainingShoppingProductsCarousel);

    /**
     * 删除培训班商品轮播图
     * 
     * @param id 培训班商品轮播图主键
     * @return 结果
     */
    public int deleteDanmoTrainingShoppingProductsCarouselById(Long id);

    /**
     * 批量删除培训班商品轮播图
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDanmoTrainingShoppingProductsCarouselByIds(Long[] ids);

    void deleteDanmoTrainingShoppingProductsCarouselByProductId(@Param("productId") Long productId);
}
